package com.example.timedormitoryDB;

import java.util.HashMap;

import com.example.clockDTO.Job;
import com.example.clockDTO.User;

import android.location.Location;
import android.text.format.Time;

public interface ItimeProvider {

	/**
	 * Persist User, clockIn, jobID, and location
	 * @param User the current logged in user
	 * @param clockin the current time Eastern Standard
	 * @param jobID user's entered jobID
	 * @param location current location
	 * @throws Exception
	 */
	public void clockIn(User username, Time time, Job jobID, Location location) throws Exception;


	/**
	 * Persist User, clockOut, jobID, and location
	 * @param User the current logged in user
	 * @param clockOut the current time Eastern Standard
	 * @param jobID user's entered jobID
	 * @param location current location
 	 * @throws Exception
	 	*/
	public void clockOut(User username, Time time, Job jobID, Location location) throws Exception;
	
	/**
	 * Fetches summary of job based on JobID
	 * @param jobID user's requested jobID
	 */
	public HashMap<String, Job> fetchJob();
	
	/**
	 * Fetches user 
	 * @param username
	 * @returns user
	 * @throws Exception
	 */
	public User fetchUser(String username) throws Exception;
	
	
}